define(function(require, exports, module) {
  'use strict';

  var Form = require('../../common/form/form');
  var Tips = require('tips');

  new Form({
    container: '#baseForm',
    url: 'configBaseSave',
    data: {
      groups: [
        {
          label: '网站名称',
          attrs: {
            type: 'text',
            required: 'required',
            name: 'website'
          }
        },
        {
          label: '网站描述',
          attrs: {
            type: 'text',
            required: 'required',
            name: 'desc'
          }
        },
        {
          label: '网站关键字',
          attrs: {
            type: 'text',
            required: 'required',
            name: 'key'
          }
        },
        {
          label: '备案号',
          attrs: {
            type: 'text',
            required: 'required',
            name: 'icp'
          }
        },
        {
          label: '注册邮件模板',
          attrs: {
            type: 'multiline',
            name: 'emailTemp'
          }
        },
        {
          label: '找回密码邮件模板',
          attrs: {
            type: 'multiline',
            name: 'findEmailTemp'
          }
        },
        {
          label: '登录赠送积分',
          attrs: {
            type: 'text',
            name: 'loginForScore'
          }
        },
        {
          label: '资料100%赠送积分',
          attrs: {
            type: 'text',
            name: 'infoScore'
          }
        }
      ]
    },
    events: {
      done: function() {
        new Tips({
          content: '保存成功'
        });
      }
    }
  });
});
